package model

import "zhongxc.cc/mall-common/errs"

// 通用错误
var (
	ServiceException      = errs.NewError(500000, "服务异常，请联系管理员")
	RedisServiceException = errs.NewError(500001, "Redis服务异常")
	ErrorNotFund          = errs.NewError(400000, "资源不存在")
	ErrorParam            = errs.NewError(400001, "参数错误")
	ErrorQueryFail        = errs.NewError(400002, "查询失败")
	ErrorNewFail          = errs.NewError(400002, "保存失败")
	ErrorUpdateFail       = errs.NewError(400002, "更新失败")
	ErrorDeleteFail       = errs.NewError(400002, "删除失败")
)

// 模块错误
var (
	PhoneRegistered    = errs.NewError(100200, "手机号已被注册")
	ErrorVerifyCode    = errs.NewError(100201, "验证码错误")
	ErrorGetVerifyCode = errs.NewError(100202, "验证码获取错误")
	ErrorRegisterFail  = errs.NewError(100203, "注册失败")
)
